package com.fmi.cloud.util;

import android.os.Environment;

public class OrangeHttpConstant {
    /**
     * 下载图片过程中发生异常
     */
    public static final String ERROR_DOWNLOAD_IMAGE = "error";

    public static final String RESULT_KEY = "errCode";
    public static final String RESULT_MESSAGE_KEY = "errInfo";
    /** 响应结果，正确 */
    public static final int RESULT_SUCCESS = 0;
    /** 对应JSONObject */
    public static final String RESULT_KEY_ENTITY = "entity";
    /** 列表 */
    public static final String RESULT_KEY_PAGE_ENTITY = "pageEntity";
    /** 服务器返回的错误信息 */
    public static final int WHAT_ERROR_HTTP = 500;

    /** accessToken过期 */
    public static final int WHAT_TOKEN_EXPIRED = 1011;
    /** 登录已过期 */
    public static final String RESULT_LOGIN_OUT_OF_DATE = "55";
    /** OrangeLife协议标准，返回成功 */
    public static final String RESULT_OK = "OK";

    /** 图片本地缓存文件夹地址 */
    public final static String IMAGE_CACHE_PATH = Environment
            .getExternalStorageDirectory() + "/zv/cache/img/";
    /** 图片临时文件夹地址 */
    public static final String IMAGE_TEMP_PATH = Environment
            .getExternalStorageDirectory() + "/zv/cache/temp/";

    /** 业务状态码 */
    public static final String ERRCODE_BIZ_HEAD = "98";
    /** 系统内部错误 */
    public static final String ERRCODE_SYSTEM_ERROR = "99";
    /** 登录过期 */
    public static final String ERRCODE_LOGIN_EXPIRE = "1011";
}
